[vxWeb Documentation]

vxWeb HTTP Server Version 1.1.8

vxWeb Common Gateway Interface

vxWeb's implementation of CGI is slightly different from the standard interface. Windows CE does not support standard input/output; therefore vxWeb passes an environment file name to the CGI program. This file contains the environment data, an optional content file name (VX_CONTENT_FILE) and an output file name (VX_OUTPUT_FILE). The data in VX_OUTPUT_FILE is sent to the browser.

The following environment data is passed:

  • REQUEST_METHOD
  • SCRIPT_NAME
  • QUERY_STRING
  • REMOTE_HOST
  • REMOTE_ADDR
  • HTTP_USER_AGENT
  • HTTP_ACCEPT
  • HTTP_REFERER
  • HTTP_COOKIE
  • AUTH_TYPE
  • REMOTE_USER
  • CONTENT_TYPE
  • CONTENT_LENGTH
  • SERVER_PROTOCOL
  • DOCUMENT_ROOT
  • SERVER_NAME
  • SERVER_SOFTWARE
  • GATEWAY_INTERFACE
  • SERVER_PORT
  • VX_CONTENT_FILE
  • VX_OUTPUT_FILE

    The format is:
    EnvironmentName1=data1
    Each environment name=data pair in the file is separated by a NULL. If the environment has no data then there will be no equal sign (=). Example:
    GATEWAY_INTERFACE=CGI/1.1 NULL VX_CONTENT_FILE NULL SERVER_PROTOCOL=HTTP/1.1 NULL ...
    See CgiApp.cpp for an example of a CGI program.


    vxWeb HTTP Server Version 1.1.8